<?php

use Illuminate\Database\Seeder;
use App\Model\Schedule;
class ScheduleSeeder extends Seeder
{

    public $schedule_list = [
        ['content' => '第一节课', 'sort' => 1],
        ['content' => '第二节课', 'sort' => 2],
        ['content' => '第三节课', 'sort' => 3],
        ['content' => '第四节课', 'sort' => 4],
        ['content' => '第五节课', 'sort' => 5],
        ['content' => '第六节课', 'sort' => 6],
        ['content' => '第七节课', 'sort' => 7],
        ['content' => '第八节课', 'sort' => 8],
        ['content' => '第九节课', 'sort' => 9],
        ['content' => '第十节课', 'sort' => 10],
        ['content' => '晚上九点', 'sort' => 11],
        ['content' => '晚上十点', 'sort' => 12],
    ];
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {

        foreach ($this->schedule_list as $schedule){
            Schedule::create($schedule);
        }

    }
}
